package com.ryzx.example.controller;

import com.ryzx.example.service.ComputerBookService;
import com.ryzx.example.vo.ComputerBook;
import com.ryzx.jpa.helper.base.BapBaseController;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/book")
public class ComputerBookController extends BapBaseController<ComputerBook,Long> {
    @Resource
    ComputerBookService computerBookService;

    @PostMapping("/aa")
    public ComputerBook findByPublisher(@RequestBody  String publisher){
        return computerBookService.findByPublisher(publisher);
    }
    @PostMapping("/findV")
    public List<ComputerBook> findV(){
        return computerBookService.findV();
    }
    @PostMapping("/findX")
    public List<ComputerBook> findX(){
        return computerBookService.findX();
    }

}
